Skip to content

Add Algorithm Learning Mode with Tutorials frontend #36

Merged
CipherYuvraj merged 3 commits intoCipherYuvraj:mainfrom
tarone-saloni:Dark
Oct 4, 2025
Merged

Add Algorithm Learning Mode with Tutorials frontend #36
CipherYuvraj merged 3 commits intoCipherYuvraj:mainfrom
tarone-saloni:Dark

Conversation

@tarone-saloni
Copy link
Contributor

fixed #2

Signed-off-by: Saloni Tarone <taronesaloni@gamil.com>
Signed-off-by: Saloni Tarone <taronesaloni@gamil.com>
@CipherYuvraj
Copy link
Owner

there are some conflicts please resolve them

@tarone-saloni
Copy link
Contributor Author

@CipherYuvraj please check

@CipherYuvraj CipherYuvraj merged commit 21a3c66 into CipherYuvraj:main Oct 4, 2025
1 check passed
@CipherYuvraj
Copy link
Owner

done

@CipherYuvraj
Copy link
Owner

2025-10-04T12:21:32.741945662Z ==> Downloading cache...
2025-10-04T12:21:32.743449637Z ==> Cloning from https://github.com/CipherYuvraj/Algorithm-Visualiser-Platform
2025-10-04T12:21:33.255546632Z ==> Checking out commit 21a3c66 in branch main
2025-10-04T12:21:47.751487726Z ==> Transferred 775MB in 10s. Extraction took 1s.
2025-10-04T12:21:56.366461196Z #1 [internal] load build definition from Dockerfile
2025-10-04T12:21:56.366492108Z #1 transferring dockerfile: 1.22kB done
2025-10-04T12:21:56.366495668Z #1 DONE 0.0s
2025-10-04T12:21:56.366497939Z
2025-10-04T12:21:56.366500288Z #2 [internal] load metadata for docker.io/library/node:18-alpine
2025-10-04T12:21:56.516809824Z #2 ...
2025-10-04T12:21:56.516827926Z
2025-10-04T12:21:56.516831506Z #3 [auth] library/node:pull render-prod/docker-mirror-repository/library/node:pull token for us-west1-docker.pkg.dev
2025-10-04T12:21:56.516838726Z #3 DONE 0.0s
2025-10-04T12:21:56.516841286Z
2025-10-04T12:21:56.516843956Z #4 [auth] library/python:pull render-prod/docker-mirror-repository/library/python:pull token for us-west1-docker.pkg.dev
2025-10-04T12:21:56.516846757Z #4 DONE 0.0s
2025-10-04T12:21:56.667726329Z
2025-10-04T12:21:56.66775089Z #5 [internal] load metadata for docker.io/library/python:3.11-slim
2025-10-04T12:21:56.932627411Z #5 DONE 0.6s
2025-10-04T12:21:56.932642302Z
2025-10-04T12:21:56.932645072Z #2 [internal] load metadata for docker.io/library/node:18-alpine
2025-10-04T12:21:56.932646902Z #2 DONE 0.6s
2025-10-04T12:21:56.932648923Z
2025-10-04T12:21:56.932651173Z #6 [internal] load .dockerignore
2025-10-04T12:21:56.932653433Z #6 transferring context: 364B done
2025-10-04T12:21:56.932655103Z #6 DONE 0.0s
2025-10-04T12:21:56.932656693Z
2025-10-04T12:21:56.932658353Z #7 importing cache manifest from local:14676779950383476826
2025-10-04T12:21:56.932660743Z #7 inferred cache manifest type: application/vnd.oci.image.index.v1+json done
2025-10-04T12:21:56.932662573Z #7 DONE 0.0s
2025-10-04T12:21:56.932664193Z
2025-10-04T12:21:56.932668424Z #8 [frontend-build 1/6] FROM docker.io/library/node:18-alpine@sha256:8d6421d663b4c28fd3ebc498332f249011d118945588d0a35cb9bc4b8ca09d9e
2025-10-04T12:21:56.932672254Z #8 resolve docker.io/library/node:18-alpine@sha256:8d6421d663b4c28fd3ebc498332f249011d118945588d0a35cb9bc4b8ca09d9e 0.0s done
2025-10-04T12:21:56.932673934Z #8 DONE 0.0s
2025-10-04T12:21:56.932675454Z
2025-10-04T12:21:56.932677164Z #9 [stage-1 1/7] FROM docker.io/library/python:3.11-slim@sha256:9bffe4353b925a1656688797ebc68f9c525e79b1d377a764d232182a519eeec4
2025-10-04T12:21:56.932678844Z #9 resolve docker.io/library/python:3.11-slim@sha256:9bffe4353b925a1656688797ebc68f9c525e79b1d377a764d232182a519eeec4 0.0s done
2025-10-04T12:21:56.932680634Z #9 DONE 0.0s
2025-10-04T12:21:56.932682174Z
2025-10-04T12:21:56.932683805Z #10 [internal] load build context
2025-10-04T12:21:56.932685525Z #10 transferring context: 1.16MB 0.0s done
2025-10-04T12:21:57.083857475Z #10 DONE 0.0s
2025-10-04T12:21:57.083876716Z
2025-10-04T12:21:57.083880356Z #11 [stage-1 2/7] WORKDIR /app
2025-10-04T12:21:57.083886597Z #11 CACHED
2025-10-04T12:21:57.083889067Z
2025-10-04T12:21:57.083892057Z #12 [stage-1 3/7] RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* && apt-get clean
2025-10-04T12:21:57.083894348Z #12 CACHED
2025-10-04T12:21:57.083896417Z
2025-10-04T12:21:57.083899398Z #13 [stage-1 4/7] COPY backend/requirements.txt ./
2025-10-04T12:21:57.083901698Z #13 CACHED
2025-10-04T12:21:57.083903748Z
2025-10-04T12:21:57.083906598Z #14 [frontend-build 2/6] WORKDIR /app/frontend
2025-10-04T12:21:57.083909488Z #14 sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870 3.64MB / 3.64MB 0.0s done
2025-10-04T12:21:57.083912398Z #14 extracting sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870
2025-10-04T12:21:57.234195493Z #14 extracting sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870 0.1s done
2025-10-04T12:21:57.384361129Z #14 sha256:dd71dde834b5c203d162902e6b8994cb2309ae049a0eabc4efea161b2b5a3d0e 17.83MB / 40.01MB 0.2s
2025-10-04T12:21:57.52336278Z #14 sha256:dd71dde834b5c203d162902e6b8994cb2309ae049a0eabc4efea161b2b5a3d0e 40.01MB / 40.01MB 0.4s done
2025-10-04T12:21:57.673958014Z #14 extracting sha256:dd71dde834b5c203d162902e6b8994cb2309ae049a0eabc4efea161b2b5a3d0e
2025-10-04T12:21:59.327831797Z #14 extracting sha256:dd71dde834b5c203d162902e6b8994cb2309ae049a0eabc4efea161b2b5a3d0e 1.7s done
2025-10-04T12:22:01.648599105Z #14 sha256:1e5a4c89cee5c0826c540ab06d4b6b491c96eda01837f430bd47f0d26702d6e3 1.26MB / 1.26MB 0.0s done
2025-10-04T12:22:01.759241532Z #14 extracting sha256:1e5a4c89cee5c0826c540ab06d4b6b491c96eda01837f430bd47f0d26702d6e3 0.1s done
2025-10-04T12:22:01.759264174Z #14 sha256:25ff2da83641908f65c3a74d80409d6b1b62ccfaab220b9ea70b80df5a2e0549 446B / 446B done
2025-10-04T12:22:01.86719889Z #14 extracting sha256:25ff2da83641908f65c3a74d80409d6b1b62ccfaab220b9ea70b80df5a2e0549 0.0s done
2025-10-04T12:22:01.867218411Z #14 sha256:41837856e00e311653c17e329192a086c3e22c71678a1dd7538e8b7d2b3a420f 115B / 115B done
2025-10-04T12:22:02.000239253Z #14 extracting sha256:41837856e00e311653c17e329192a086c3e22c71678a1dd7538e8b7d2b3a420f 0.0s done
2025-10-04T12:22:02.000261755Z #14 CACHED
2025-10-04T12:22:02.000267425Z
2025-10-04T12:22:02.000274876Z #15 [frontend-build 3/6] COPY frontend/package*.json ./
2025-10-04T12:22:02.419186548Z #15 DONE 0.5s
2025-10-04T12:22:02.41920582Z
2025-10-04T12:22:02.41921019Z #16 [frontend-build 4/6] RUN npm ci --only=production
2025-10-04T12:22:02.883515393Z #16 0.405 npm warn config only Use --omit=dev to omit dev dependencies from the install.
2025-10-04T12:22:06.989562865Z #16 ...
2025-10-04T12:22:06.989583867Z
2025-10-04T12:22:06.989589427Z #17 [stage-1 5/7] RUN pip install --no-cache-dir -r requirements.txt
2025-10-04T12:22:06.989594487Z #17 sha256:8c7716127147648c1751940b9709b6325f2256290d3201662eca2701cadb2cdf 29.78MB / 29.78MB 0.3s done
2025-10-04T12:22:06.989599198Z #17 extracting sha256:8c7716127147648c1751940b9709b6325f2256290d3201662eca2701cadb2cdf 0.8s done
2025-10-04T12:22:06.989602998Z #17 sha256:44350d10c02e7ab437e3fe5a05e3405115ece5972b2b9f7cd0d68d23c72d5833 1.29MB / 1.29MB 0.0s done
2025-10-04T12:22:06.989610348Z #17 extracting sha256:44350d10c02e7ab437e3fe5a05e3405115ece5972b2b9f7cd0d68d23c72d5833 0.3s done
2025-10-04T12:22:06.989614519Z #17 sha256:4dc2c3222cdbf7b5e9d5c68653d42c7289ddf2bfaa17b12c961014755b7d04dd 14.64MB / 14.64MB 0.1s done
2025-10-04T12:22:06.989618539Z #17 extracting sha256:4dc2c3222cdbf7b5e9d5c68653d42c7289ddf2bfaa17b12c961014755b7d04dd 0.8s done
2025-10-04T12:22:06.989622359Z #17 sha256:b25238518c0cca0928b2117b90cee455c3fbdb7d605f92131e5cc92fbfb5b468 249B / 249B done
2025-10-04T12:22:06.989626209Z #17 extracting sha256:b25238518c0cca0928b2117b90cee455c3fbdb7d605f92131e5cc92fbfb5b468 0.0s done
2025-10-04T12:22:06.98963005Z #17 sha256:844b671438b0c357d02824fe3105d58a26bf54d4583fe9d2829b6e5714431745 89B / 89B done
2025-10-04T12:22:06.9896343Z #17 extracting sha256:844b671438b0c357d02824fe3105d58a26bf54d4583fe9d2829b6e5714431745 0.0s done
2025-10-04T12:22:06.989649261Z #17 sha256:9444ed57a761cd49202e23b80ec6f1d1b51c69b143af6d34c9cd120d0c58e86e 5.58MB / 5.58MB 0.0s done
2025-10-04T12:22:06.989653221Z #17 extracting sha256:9444ed57a761cd49202e23b80ec6f1d1b51c69b143af6d34c9cd120d0c58e86e 0.4s done
2025-10-04T12:22:06.989657151Z #17 sha256:de2f5852fc0eddfc7834b5a86be4ec65d95b1b3796fbba305ae920bb44a316e0 350B / 350B done
2025-10-04T12:22:06.989661092Z #17 extracting sha256:de2f5852fc0eddfc7834b5a86be4ec65d95b1b3796fbba305ae920bb44a316e0 0.0s done
2025-10-04T12:22:06.989676883Z #17 sha256:7bfaa89d05d1295586d43e1e966c300ee9b6d7a0c1e755a98ffaf150597fcf51 50.88MB / 50.88MB 0.6s done
2025-10-04T12:22:06.989882206Z #17 extracting sha256:7bfaa89d05d1295586d43e1e966c300ee9b6d7a0c1e755a98ffaf150597fcf51
2025-10-04T12:22:09.995339336Z #17 ...
2025-10-04T12:22:09.995366417Z
2025-10-04T12:22:09.995371028Z #16 [frontend-build 4/6] RUN npm ci --only=production
2025-10-04T12:22:09.995375378Z #16 7.502 npm warn deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
2025-10-04T12:22:10.401376004Z #16 8.010 npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
2025-10-04T12:22:10.552333961Z #16 8.011 npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
2025-10-04T12:22:10.682337133Z #16 8.291 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
2025-10-04T12:22:10.833355903Z #16 8.323 npm warn deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
2025-10-04T12:22:10.969651133Z #16 8.578 npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
2025-10-04T12:22:10.969668084Z #16 8.578 npm warn deprecated
2025-10-04T12:22:10.969671664Z #16 8.578 npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
2025-10-04T12:22:11.091190179Z #16 8.699 npm warn deprecated workbox-google-analytics@6.6.0: It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained
2025-10-04T12:22:11.219110039Z #16 8.827 npm warn deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
2025-10-04T12:22:12.71481181Z #16 10.22 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2025-10-04T12:22:12.714833761Z #16 10.32 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
2025-10-04T12:22:13.464023821Z #16 11.07 npm warn deprecated domexception@2.0.1: Use your platform's native DOMException instead
2025-10-04T12:22:15.117524661Z #16 12.65 npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
2025-10-04T12:22:15.418536158Z #16 12.96 npm warn deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
2025-10-04T12:22:16.020326456Z #16 13.54 npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
2025-10-04T12:22:16.020346227Z #16 13.56 npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
2025-10-04T12:22:16.771815202Z #16 14.31 npm warn deprecated @babel/plugin-proposal-private-methods@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
2025-10-04T12:22:16.872145587Z #16 14.31 npm warn deprecated @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
2025-10-04T12:22:16.873214644Z #16 14.48 npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
2025-10-04T12:22:17.023231102Z #16 14.48 npm warn deprecated @babel/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
2025-10-04T12:22:17.023252263Z #16 14.48 npm warn deprecated @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
2025-10-04T12:22:18.679597393Z #16 16.15 npm warn deprecated source-map@0.8.0-beta.0: The work that was done in this beta branch won't be included in future versions
2025-10-04T12:22:18.679621405Z #16 16.23 npm warn deprecated @babel/plugin-proposal-private-property-in-object@7.21.11: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.
2025-10-04T12:22:21.536992901Z #16 19.06 npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
2025-10-04T12:22:26.183689447Z #16 23.79
2025-10-04T12:22:26.183712459Z #16 23.79 added 1663 packages, and audited 1664 packages in 23s
2025-10-04T12:22:26.334174124Z #16 23.79
2025-10-04T12:22:26.334191986Z #16 23.79 291 packages are looking for funding
2025-10-04T12:22:26.334196476Z #16 23.79 run npm fund for details
2025-10-04T12:22:26.334200336Z #16 23.80
2025-10-04T12:22:26.334204326Z #16 23.80 13 vulnerabilities (6 moderate, 7 high)
2025-10-04T12:22:26.334207836Z #16 23.80
2025-10-04T12:22:26.334211297Z #16 23.80 To address issues that do not require attention, run:
2025-10-04T12:22:26.334215467Z #16 23.80 npm audit fix
2025-10-04T12:22:26.334218947Z #16 23.80
2025-10-04T12:22:26.334223348Z #16 23.80 To address all issues (including breaking changes), run:
2025-10-04T12:22:26.334227048Z #16 23.80 npm audit fix --force
2025-10-04T12:22:26.334230538Z #16 23.80
2025-10-04T12:22:26.334234008Z #16 23.80 Run npm audit for details.
2025-10-04T12:22:26.334238138Z #16 23.80 npm notice
2025-10-04T12:22:26.334241659Z #16 23.80 npm notice New major version of npm available! 10.8.2 -> 11.6.1
2025-10-04T12:22:26.334245149Z #16 23.80 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.1
2025-10-04T12:22:26.334248699Z #16 23.80 npm notice To update run: npm install -g npm@11.6.1
2025-10-04T12:22:26.334252219Z #16 23.80 npm notice
2025-10-04T12:22:41.621215714Z #16 ...
2025-10-04T12:22:41.621233185Z
2025-10-04T12:22:41.621238716Z #17 [stage-1 5/7] RUN pip install --no-cache-dir -r requirements.txt
2025-10-04T12:22:41.621245796Z #17 extracting sha256:7bfaa89d05d1295586d43e1e966c300ee9b6d7a0c1e755a98ffaf150597fcf51 38.6s done
2025-10-04T12:22:41.763373465Z #17 CACHED
2025-10-04T12:22:41.763394906Z
2025-10-04T12:22:41.763400866Z #18 [stage-1 6/7] COPY backend/ ./
2025-10-04T12:22:41.763404867Z #18 DONE 0.0s
2025-10-04T12:22:41.763408767Z
2025-10-04T12:22:41.763413247Z #16 [frontend-build 4/6] RUN npm ci --only=production
2025-10-04T12:22:41.763417487Z #16 DONE 39.4s
2025-10-04T12:22:41.914027752Z
2025-10-04T12:22:41.914046533Z #19 [frontend-build 5/6] COPY frontend/ ./
2025-10-04T12:22:42.487899385Z #19 DONE 0.7s
2025-10-04T12:22:42.638720874Z
2025-10-04T12:22:42.638750386Z #20 [frontend-build 6/6] RUN npm run build
2025-10-04T12:22:42.788866739Z #20 0.207
2025-10-04T12:22:42.788897691Z #20 0.207 > algorithm-visualizer-frontend@1.0.0 build
2025-10-04T12:22:42.788901422Z #20 0.207 > react-scripts build
2025-10-04T12:22:42.788903662Z #20 0.207
2025-10-04T12:22:44.14208011Z #20 1.541 Creating an optimized production build...
2025-10-04T12:23:11.796898548Z #20 29.22 Failed to compile.
2025-10-04T12:23:11.79692514Z #20 29.22
2025-10-04T12:23:11.796931321Z #20 29.22 [eslint]
2025-10-04T12:23:11.796936471Z #20 29.22 src/App.js
2025-10-04T12:23:11.796941781Z #20 29.22 Line 67:49: 'darkMode' is not defined no-undef
2025-10-04T12:23:11.796946082Z #20 29.22 Line 71:48: 'darkMode' is not defined no-undef
2025-10-04T12:23:11.796953672Z #20 29.22
2025-10-04T12:23:11.796958232Z #20 29.22 src/components/Tutorial/TutorialLayout.jsx
2025-10-04T12:23:11.796962892Z #20 29.22 Line 15:36: 'getTutorialById' is not defined no-undef
2025-10-04T12:23:11.796967123Z #20 29.22
2025-10-04T12:23:11.796972023Z #20 29.22 src/pages/TutorialsPage.jsx
2025-10-04T12:23:11.796976793Z #20 29.22 Line 6:37: 'useState' is not defined no-undef
2025-10-04T12:23:11.796981164Z #20 29.22 Line 7:33: 'useState' is not defined no-undef
2025-10-04T12:23:11.796985594Z #20 29.22 Line 8:29: 'useState' is not defined no-undef
2025-10-04T12:23:11.796989914Z #20 29.22 Line 10:3: 'useEffect' is not defined no-undef
2025-10-04T12:23:11.796992734Z #20 29.22 Line 13:28: 'getTutorials' is not defined no-undef
2025-10-04T12:23:11.796995525Z #20 29.22
2025-10-04T12:23:11.796998505Z #20 29.22 Search for the keywords to learn more about each error.
2025-10-04T12:23:11.797001445Z #20 29.22
2025-10-04T12:23:11.797004305Z #20 29.22
2025-10-04T12:23:13.187809515Z #20 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
2025-10-04T12:23:13.187826486Z ------
2025-10-04T12:23:13.187830506Z > [frontend-build 6/6] RUN npm run build:
2025-10-04T12:23:13.187833446Z 29.22 src/pages/TutorialsPage.jsx
2025-10-04T12:23:13.187836886Z 29.22 Line 6:37: 'useState' is not defined no-undef
2025-10-04T12:23:13.187839736Z 29.22 Line 7:33: 'useState' is not defined no-undef
2025-10-04T12:23:13.187842817Z 29.22 Line 8:29: 'useState' is not defined no-undef
2025-10-04T12:23:13.187845597Z 29.22 Line 10:3: 'useEffect' is not defined no-undef
2025-10-04T12:23:13.187848377Z 29.22 Line 13:28: 'getTutorials' is not defined no-undef
2025-10-04T12:23:13.187851277Z 29.22
2025-10-04T12:23:13.187854097Z 29.22 Search for the keywords to learn more about each error.
2025-10-04T12:23:13.187856948Z 29.22
2025-10-04T12:23:13.187861258Z 29.22
2025-10-04T12:23:13.187866538Z ------
2025-10-04T12:23:13.188947437Z Dockerfile:13
2025-10-04T12:23:13.188960898Z --------------------
2025-10-04T12:23:13.188965728Z 11 | # Copy frontend source and build
2025-10-04T12:23:13.188970408Z 12 | COPY frontend/ ./
2025-10-04T12:23:13.188974798Z 13 | >>> RUN npm run build
2025-10-04T12:23:13.188979679Z 14 |
2025-10-04T12:23:13.188984149Z 15 | # Stage 2: Python backend with built frontend
2025-10-04T12:23:13.188988499Z --------------------
2025-10-04T12:23:13.188993889Z error: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
2025-10-04T12:23:13.210323869Z error: exit status 1

@CipherYuvraj
Copy link
Owner

@tarone-saloni look at it and please correct it because in the last commit of yours the build got failed due to the changes you've made
During the Docker build, the React frontend compilation failed due to some undefined variables/functions. Here are the details:

❌ Errors

  1. src/App.js
    Line 67:49: 'darkMode' is not defined no-undef
    Line 71:48: 'darkMode' is not defined no-undef
  • darkMode is being used without being defined.
  • Possible fix:
    • Define it using React state:
      const [darkMode, setDarkMode] = useState(false);
    • Or ensure it’s coming from props/context if that was the intention.
  1. src/components/Tutorial/TutorialLayout.jsx
    Line 15:36: 'getTutorialById' is not defined no-undef
  • getTutorialById is being used without definition/import.
  • Possible fix:
    • Import it:
      import { getTutorialById } from "../utils/tutorials";
    • Or define it locally in the file.

✅ Next Steps

  • Please update your code to fix these undefined references.
  • Test locally with:
npm run build
before committing again. This ensures the build passes both locally and in Docker.

Once these fixes are made, the build should succeed 🚀.

Thanks again for your work! 🙌

@CipherYuvraj
Copy link
Owner

@tarone-saloni

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Algorithm Learning Mode with Tutorials

2 participants

Comments